// import log from '../modules/log';
// import setting from '../modules/setting';
// import base from '../modules/base';
// import auth from '../modules/auth';
// import basic from '../modules/basic';
// import compDesign from '../modules/compDesign';
// import model from '../modules/model';
// import BI from '../modules/BI';
// import simulation from '../modules/simulation';
// import modelDesign from '../modules/modelDesign';
/**
 * 在主框架内显示
 */
const frameIn = [
    {
        path: '/StarCloud',
        name: 'StarCloud',
        meta:{
          auth:true,
            title:{
                'en-US':'home',
                'zh-CN':'首页'
            },
        },
        // redirect: {
        //     path: '/home',
        // },
        // component: BasicLayout,
        children: [
            // {
            //     path: 'index',
            //     name: 'index',
            //     redirect: {
            //         name: 'StarCloud-welcome'
            //     }
            // },
            // {
            //     path: 'welcome',
            //     name: `StarCloud-welcome`,
            //     meta: {
            //         auth: true,
            //         title: '欢迎',
            //         closable: false
            //     },
            //     component: () => import('@/pages/welcome')
            // },
            // {
            //     path: 'log',
            //     name: 'log',
            //     meta: {
            //         title: '前端日志',
            //         auth: true
            //     },
            //     component: () => import('@/pages/system/log')
            // },
            // 刷新页面 必须保留
            {
                path: 'refresh',
                name: 'refresh',
                hidden: true,
                component: {
                    beforeRouteEnter (to, from, next) {
                        next(instance => instance.$router.replace(from.fullPath));
                    },
                    render: h => h()
                }
            },
            // 页面重定向 必须保留
            {
                path: 'redirect/:route*',
                name: 'redirect',
                hidden: true,
                component: {
                    beforeRouteEnter (to, from, next) {
                        next(instance => instance.$router.replace(JSON.parse(from.params.route)));
                    },
                    render: h => h()
                }
            }
        ]
    }
];
export default frameIn;